<template>
  <div class="header">
    <div>
      <slot name="left"></slot>
    </div>
    <div>
      <slot name="title"></slot>
    </div>
    <div>
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.header {
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 5px 10px;
 
  > div:nth-of-type(2) {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
  }
}
</style>